package com.atguigu.gulimall.order.feign;

import com.atguigu.gulimall.order.vo.MemberAddresVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.List;

@Component
@FeignClient("gulimall-member")
public interface MemberFeginServie {
    @GetMapping("member/memberreceiveaddress/{memberId}/addresses")
    List<MemberAddresVo> getAddress(@PathVariable("memberId") Long memberId );

}
